home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 33
/
033.d81
/
bach menu
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
105 lines
0 ifzz=0thenzz=1:load"unpacker",8,1
1 ifzz=1thenzz=2:load"bach.shp",8,1
2 ifzz=2thenzz=3:load"text.3.o",8,1
3 :
4 ifzz=3thenpoke249,224:poke250,204:poke251,0:poke252,64:poke253,0:poke254,0
5 ifzz=3thensys51456:ag=3.3:poke828,1:poke829,39:poke830,1:poke831,23:zz=4
6 :
7 poke650,128:poke53280,.:poke53281,.:gosub20:printchr$(142)
8 onldgoto1145,50040
9 goto100
10 print"":fora=1tons:es=6-len(str$(ns(a))):es$=mid$(sp$,1,es)
12 if((ns=a)or(a=ns-1))anda=sethenprint"[159]"ns$(a):goto16
13 if(ns=a)or(ns-1=a)thenprint"[154]"ns$(a):goto16
14 ifa=sethenprint"[159]"ns$(a)tab(32)ns(a)"[157] ":goto16
15 print"[154]"ns$(a)tab(32)ns(a)"[157] [146]"
16 next:return
20 fort=.to24:poke54272+t,.:next:return
30 print""
32 fora=1to8:print" ":next
34 print"":return
50 gosub30:print" [150]are you sure you want to quit? (y/n)"
55 geta$:ifa$=""then55
60 ifa$="y"then60000
65 ifa$<>"n"then55
70 return
100 ns=10:dim ns$(ns),ns(ns):se=1:sp$=" "
110 ns$(1)="invention 13"
112 ns$(2)="sinfonia 2"
114 ns$(3)="sinfonia 4"
116 ns$(4)="sinfonia 12"
118 ns$(5)="sinfonia 13"
120 ns$(6)="prelude 2"
122 ns$(7)="prelude 3"
124 ns$(8)="prelude 7"
125 ns$(9)=" auto-play "
126 ns$(10)=" exit program "
127 joy=56320
128 print"[147]";
130 print" [158]bach to the future"
132 print"[129] music by: ron coffen"
135 print"[153][154]name of song"tab(29)"# of times"
137 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
140 gosub10
145 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
150 print"[158]crsr up and crsr down (or joystick)"
160 print"moves the highlighted area up and down."
170 print"[129]+ and - keys add and subtract the"
180 print"number of times a song is to be played."
190 print"when you're finished selecting songs,"
200 print"press return (or button)."
1000 if(peek(203)=64)and(peek(197)=64)thenpoke198,.
1005 geta$:ifa$=""andpeek(joy)=127then1000
1010 ifa$=""orpeek(joy)=125thense=se+1:ifse=ns+1thense=1:goto1060
1020 ifa$="[145]"ora$=""orpeek(joy)=126thense=se-1:ifse=0thense=ns:goto1060
1030 ifa$="+"orpeek(joy)=119then:ns(se)=ns(se)+1
1040 ifa$="-"orpeek(joy)=123then:ns(se)=ns(se)-1:ifns(se)=-1thenns(se)=.
1050 ifa$=chr$(13)orpeek(joy)=111then1070
1060 gosub10:goto1000
1070 ifse=nsthengosub50:goto130
1072 ifse=ns-1then50000: rem auto-play
1080 hn=.:fora=1tons
1090 ifns(a)>hnthenhn=ns(a)
1100 next
1110 a=1:qq=0
1120 b=1
1130 ifns(b)=.then1200
1135 se=b:gosub10:gosub30
1140 ld=1:load "b64/"+ns$(b),8,1
1145 ns(b)=ns(b)-1:gosub10:ifqq=1then1150
1146 qq=1:sys51459
1147 sys49161,"[208]ress [return] to return to the menu",1,23,0
1148 sys49161,"any other key skips to the next song.",1,24,0
1150 sys49161," "+ns$(b)+" ",17-len(ns$(b))/2,21,0
1155 poke54296,15:sys30120:poke198,.:ifb=7thenpoke54296,15
1160 geta$:ifpeek(789)<>234anda$=""then1160
1165 ifa$=chr$(13)thengosub20:goto1220
1170 ifa$<>""orpeek(789)=234thenpoke31044,4:gosub20:goto1200
1180 ifa$<>""orpeek(789)=250thenpoke8248,4:gosub20:goto1200
1190 poke198,1:poke631,65:goto1160
1200 b=b+1:ifb<nsthen1130
1210 a=a+1:ifa<hnthen1120
1220 gosub30:sys51459:goto130
2000 :
50000 rem auto-play
50010 x=1:qq=0
50020 se=x:gosub10:gosub30
50030 ld=2:load "b64/"+ns$(x),8,1
50040 gosub10:ifqq=1then50060
50042 sys51459
50050 sys49161,"[208]ress [return] to return to the menu",1,23,0
50052 sys49161,"any other key skips to the next song.",1,24,0
50060 sys49161," "+ns$(x)+" ",17-len(ns$(x))/2,21,0:qq=1
50065 poke54296,15:sys30120:poke198,.
50070 geta$:ifpeek(789)<>234anda$=""then50070
50080 ifa$=chr$(13)then51020
50082 ifa$<>""orpeek(789)=234thenpoke31044,4:gosub20:goto51000
50084 ifa$<>""orpeek(789)=250thenpoke8248,4:gosub20:goto51000
50090 poke198,1:poke631,13:goto50070
50095 :
51000 x=x+1:ifx<=ns-2then50020
51020 gosub20:gosub30:sys51459:goto130
60000 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60010 print"[147]";:ifer<>63thenend
60020 load"hello connect",8